﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AssemblyExplorer
{
    public class AssemblyDataItem : DataItem
    {
        private string _text;
        private object _reference;
        private string _imageKey;
        public AssemblyDataItem(string text, string imageKey, object referencedValue)
        {
            _text = text;
            _imageKey = imageKey;
            _reference = referencedValue;
        }

        public override string Text
        {
            get { return _text; }
        }

        public override int ImageIndex
        {
            get { return Icons.GetIndex(_imageKey); }
        }

        public override object ReferencedValue
        {
            get { return _reference; }
        }
    }
}
